import java.util.Scanner;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/11
 */
public class Test09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = sc.nextInt();
        int b ;
        for (int i = a; i > 0; i/=10) {
             b = i % 10;
            System.out.print(b);
        }
    }
}
